<ul class="layui-nav layui-nav-tree" lay-filter="setting">
	<#if (user?? && user.roleAuthMap["A04_A01"]??   || user.usertype == "0")>		
	<li class="layui-nav-item <#if subtype?? && subtype == "index">layui-this</#if>">
		<a class="layui-nav-default" href="/apps/workorders/index.html">工单概况</a>
	</li>
	</#if>
	<#if (user?? && user.roleAuthMap["A04_A02"]??   || user.usertype == "0")>
	<li class="layui-nav-item layui-nav-itemed">
		<a class="layui-nav-title" href="javascript:;">工单管理</a>
		<dl class="layui-nav-child ukefu-count-tip">
			<#if (user?? && user.roleAuthMap["A04_A02_A01"]??   || user.usertype == "0")>		
			<dd class="<#if subtype?? && subtype == "myorders">layui-this</#if>">
				<a href="/apps/workorders/myorders.html">
				我的工单
				<div class="tip">${mycount!0}</div>
				</a>
			</dd>
			</#if>
			<#if models?? && models["workflow"]?? && models["workflow"] == true>
			<dd class="<#if subtype?? && subtype == "workflow">layui-this</#if>">
				<a href="/apps/workorders/workflow.html">
				待办任务（流程）
				<div class="tip">${workflow!0}</div>
				</a>
			</dd>
			</#if>
			<#if (user?? && user.roleAuthMap["A04_A02_A02"]??   || user.usertype == "0")>		
			<dd class="<#if subtype?? && subtype == "workitem">layui-this</#if>">
				<a href="/apps/workorders/workitem.html">
				待处理工单
				<div class="tip">${wait!0}</div>
				</a>
			</dd>
			</#if>
			<#if (user?? && user.roleAuthMap["A04_A02_A03"]??   || user.usertype == "0")>		
			<dd class="<#if subtype?? && subtype == "notassigned">layui-this</#if>">
				<a href="/apps/workorders/notassigned.html">
				未分配工单
				<div class="tip">${notassigned!0}</div>
				</a>
			</dd>
			</#if>
			<#if (user?? && user.roleAuthMap["A04_A02_A04"]??   || user.usertype == "0")>		
			<dd class="<#if subtype?? && subtype == "favorites">layui-this</#if>">
				<a href="/apps/workorders/favorites.html">
				关注的工单
				<div class="tip">${fav!0}</div>
				</a>
			</dd>
			</#if>
			<#if (user?? && user.roleAuthMap["A04_A02_A05"]??   || user.usertype == "0")>		
			<dd class="<#if subtype?? && subtype == "closedorders">layui-this</#if>">
				<a href="/apps/workorders/closed.html">
				已关闭工单
				<div class="tip">${closed!0}</div>
				</a>
			</dd>
			</#if>
			<#if (user?? && user.roleAuthMap["A04_A02_A06"]??   || user.usertype == "0")>
				<dd class="<#if subtype?? && subtype == "type">layui-this</#if>">
					<a href="/apps/workorder/type/index.html">工单分类</a>
				</dd>
			</#if>
		</dl>
	</li>
	</#if>
	<#if models?? && models["workflow"]?? && models["workflow"] == true>
	<#if (user?? && user.roleAuthMap["A05_A01"]??   || user.usertype == "0")>
	<li class="layui-nav-item layui-nav-itemed">
		<a class="layui-nav-title" href="javascript:;">业务流程</a>
		<dl class="layui-nav-child">
			<#if (user?? && user.roleAuthMap["A05_A01_A01"]??   || user.usertype == "0")>
				<dd class="<#if subtype?? && subtype == "bpm">layui-this</#if>">
					<a href="/apps/bpm/index.html">流程管理</a>
				</dd>
			</#if>
			<#if (user?? && user.roleAuthMap["A05_A01_A02"]??   || user.usertype == "0")>
				<dd class="<#if subtype?? && subtype == "process">layui-this</#if>">
					<a href="/apps/bpm/process.html">已发布流程</a>
				</dd>
			</#if>
			<#if (user?? && user.roleAuthMap["A05_A01_A03"]??   || user.usertype == "0")>
				<dd class="<#if subtype?? && subtype == "instance">layui-this</#if>">
					<a href="/apps/bpm/instance.html">流程实例</a>
				</dd>
			</#if>
		</dl>
	</li>
	</#if>
	</#if>
</ul>